package sg.edu.nus.iss.vmcs.util;


public class DisplayPanelFactory{
	
	/**
	 * Factory create method to build the display panel.
	 * 
	 * @param label
	 * @param length
	 * @param lt
	 * @return Panel
	 */
	public static DisplayPanel createLabelledDisplayPanel(String label, int length, int lt){		
		DisplayPanel labelledDisplayPanel = new LabelledDisplay(label, length, lt);
		return labelledDisplayPanel;
		
	}
	/**
	 * Factory method to create the warning display panel.
	 * 
	 * @param label
	 * @return
	 */
	public static DisplayPanel createWarningDisplayPanel(String label){
		DisplayPanel warnningDisplayPanel = new WarningDisplay(label);
		return warnningDisplayPanel;
	}
	/**
	 * Factory method to create a new labeled value panel.
	 * 
	 * @param name
	 * @param value
	 * @param width
	 * @return
	 */
	public static DisplayPanel createLabelledValuePanel(String name, String value, int width){
		DisplayPanel labelledValuePanel = new LabelledValue(name,value,width);
		return labelledValuePanel;
	}

}
